package light.mvc.model.base;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.validation.constraints.NotNull;

import light.mvc.model.base.IdEntity;

import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.validator.constraints.NotBlank;


@Entity
@Table(name = "tb_data_ctrl", schema = "")
@DynamicInsert(true)
@DynamicUpdate(true)
public class Tdatafile implements java.io.Serializable{

	private Long id;
    private String data_date;
    private String state;
    private Date upload_time;
    private Integer rec_num;
    private String org_id;
    private String data_type;
    private String data_table;
    private String file_name;
    private String file_path;
    private Integer cmp_file_num;
    private Integer repeat_file_num;
    private String period;
    private String week;
    private String inst_id;
    
    @Id
	@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "dataCtrlSeq")
	@SequenceGenerator(name = "dataCtrlSeq", sequenceName = "SEQ_DATA_CTRL", allocationSize = 1)
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

    public String getData_date() {
        return data_date;
    }
    
    public void setData_date(String data_date) {
        this.data_date = data_date;
    }
    
    public String getState() {
        return state;
    }
    
    public void setState(String state) {
        this.state = state;
    }
    
    @Temporal(TemporalType.TIMESTAMP)
    @Column(name = "UPLOAD_TIME", length = 19)
    public Date getUpload_time() {
        return upload_time;
    }
    
    public void setUpload_time(Date upload_time) {
        this.upload_time = upload_time;
    }
    
    public Integer getRec_num() {
        return rec_num;
    }
    
    public void setRec_num(Integer rec_num) {
        this.rec_num = rec_num;
    }
    
    
    public String getOrg_id() {
        return org_id;
    }
    
    public void setOrg_id(String org_id) {
        this.org_id = org_id;
    }
    
    public String getData_type() {
        return data_type;
    }
    
    public void setData_type(String data_type) {
        this.data_type = data_type;
    }
    
    public String getData_table() {
        return data_table;
    }
    
    public void setData_table(String data_table) {
        this.data_table = data_table;
    }
    
    @NotBlank
    public String getFile_name() {
        return file_name;
    }
    
    public void setFile_name(String file_name) {
        this.file_name = file_name;
    }
    
    public String getFile_path() {
        return file_path;
    }
    
    public void setFile_path(String file_path) {
        this.file_path = file_path;
    }

	public Integer getCmp_file_num() {
		return cmp_file_num;
	}

	public void setCmp_file_num(Integer cmp_file_num) {
		this.cmp_file_num = cmp_file_num;
	}

	public Integer getRepeat_file_num() {
		return repeat_file_num;
	}

	public void setRepeat_file_num(Integer repeat_file_num) {
		this.repeat_file_num = repeat_file_num;
	}

	public String getPeriod() {
		return period;
	}

	public void setPeriod(String period) {
		this.period = period;
	}

	public String getWeek() {
		return week;
	}

	public void setWeek(String week) {
		this.week = week;
	}

	public String getInst_id() {
		return inst_id;
	}

	public void setInst_id(String inst_id) {
		this.inst_id = inst_id;
	}
	
}
